package com.workManager.mapper;

import com.workManager.pojo.TdOrganization;
import com.workManager.pojo.TdOrganizationExample;
import java.util.List;
import java.util.Map;

import com.workManager.vo.OrganizationVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdOrganizationMapper {
    int countByExample(TdOrganizationExample example);

    int deleteByExample(TdOrganizationExample example);

    int deleteByPrimaryKey(Integer organizationId);

    int insert(TdOrganization record);

    int insertSelective(TdOrganization record);

    List<TdOrganization> selectByExample(TdOrganizationExample example);

    TdOrganization selectByPrimaryKey(Integer organizationId);

    int updateByExampleSelective(@Param("record") TdOrganization record, @Param("example") TdOrganizationExample example);

    int updateByExample(@Param("record") TdOrganization record, @Param("example") TdOrganizationExample example);

    int updateByPrimaryKeySelective(TdOrganization record);

    int updateByPrimaryKey(TdOrganization record);

    List<TdOrganization> queryUserOrganization(Integer userId);

    List<OrganizationVo> query(@Param("cm") Map map);

    TdOrganization queryByName(String orgName);
}